package com.java.service.impl;

import com.java.bean.Student;
import com.java.dao.StudentDao;
import com.java.dao.impl.StudenDaotImpl;
import com.java.service.StudentService;

import java.util.List;

/**
 * @Author: wjr
 * @Description:
 * @Date Created in  2020-09-06 2:16
 * @Modified By:
 */
public class StudentServiceImpl implements StudentService {
    private StudentDao dao = new StudenDaotImpl();
    @Override
    public List<Student> getAll() {
        return dao.getAll();
    }

    @Override
    public boolean deleteStudent(Student student) {
        return dao.deleteStudent(student);
    }

    @Override
    public Student selectStudentById(int Id) {
        return dao.selectStudentById(Id);
    }

    @Override
    public boolean addStudent(Student student) {
        return dao.addStudent(student);
    }

    @Override
    public boolean updateStudent(Student student) {
        return dao.updateStudent(student);
    }
}
